package net.dl.ss.domain;

/**
 * @author yakovlev.yuriy@gmail.com
 * @since 12.8.2008
 */
public class Dance {
	private Long id;
	private Long eventId;
	private String name;
	private String abbreviation;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getEventId() {
		return eventId;
	}
	public void setEventId(Long eventId) {
		this.eventId = eventId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAbbreviation() {
		return abbreviation;
	}
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	
	public String toXML() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("<dance>");
		buffer.append("<id>" + id + "</id>");
		buffer.append("<eventId>" + eventId + "</eventId>");
		buffer.append("<name>" + name + "</name>");
		buffer.append("<abbreviation>" + abbreviation + "</abbreviation>");
		buffer.append("</dance>");
		return buffer.toString();
	}
}
